package com.conn;

import java.io.*;
import java.net.*;

//interface XmlOpertor {
//    public String toXml();
//}

public class OptsSet {
    private static InputStream is;
    private static OutputStream os;

    private static boolean send(String data) {
        try {
            os.write(data.getBytes("UTF-8"));
        } catch (IOException ex) {
            ex.printStackTrace();
            return false;
        }
        return true;
    }

    public static boolean clientRegister(Socket cli, String data) {
        try {
            is = cli.getInputStream();
            os = cli.getOutputStream();
        } catch (IOException ex) {
            ex.printStackTrace();
            return false;
        }
        return send(data);
    }

    public static boolean clientLogin(Socket cli, String info) {
        return true;
    }
};
